// export const getDongtai =()=>fetch("http://106.12.79.128:666/event?pagesize=10&lasttime=1556740526369",{credentials:'include'})

// export const Support = (threadId)=>fetch(`http://106.12.79.128:666/resource/like?t=1&type=6&threadId=${threadId},`,{credentials:'include'})

// async function getDongtai(){
//     const res = await fetch("http://106.12.79.128:666/event?pagesize=10&lasttime=1556740526369",{credentials:'include'})
//     const result = await res.json()
//     return result
// }

// export default getDongtai
const getDongtai = ()=>fetch('http://106.12.79.128:666/event?pagesize=10&limit=10&lasttime=1556740526369',{credentials:'include'})

//  const Support2 = (threadId)=>fetch('http://106.12.79.128:666/resource/like?t=1&type=6&threadId='+threadId,{credentials:'include'})

 export default getDongtai
